<{include file="public/header.html"}>
	<!--回答详情 内容-->
	<div class="wd-answer">
		<div class="p15 border-bottom-sm bj-grey">
			<p><{$item['title']}></p>
		</div>
	</div>
	<div class="wd-answer-details  article-container mt2">
		<div class="article-head border plr15 ptb10 f-cb">
			<a href="javascript:;" class="fl head-img mr5"><img src="<{$item['head_img']}>"/></a>
			<button class="follow fr follow2 iconfont" id="wd_follow" onclick="funWdFollow()">
				<i><{if $item['is_care']}>&#xe66f; 已关注<{else}>&#xe640; 关注<{/if}></i>
			</button>
			<div>
				<a href="javascript:;" class="name"><{$item['nickname']}><img src="/static/mobile/img/vip/vip1.png"/></a>
				<p class="time"><{$item['create_time']}></p>
			</div>
		</div>
		<div class="detail-text text border-bottom-lg">
			<p><{$item['content']}></p>
		</div>
		<div class="answer ptb5 sliding-jq">
			<{if $list}>
			<ul>
				<{foreach from=$list item=val}>
				<li class="f-cb ptb10 mlr15">
					<div class="f-cb user-head">
						<img src="<{$val['head_img']}>" class="head fl"/>
						<span class="name fl ml5"><{$val['nickname']}></span>
						<img src="/static/mobile/img/vip/vip1.png" class="badge fl ml5"/>
						<!--菜单-->
						<div class="comments-menu">
							<p class="time fr"><{$val['create_time']}></p>
							<!--隐藏菜单-->
						</div>
					</div>
					<div href="javascript:;" class="disblock user-head">
						<div class="text-toggle mtb5 more_box">
							<{if ($val['is_reply']) == 1}><p class="text">回复<a href="javascript:;" class="col-red" id="<{$val['reply_uid']}>"><{$val['reply_nickname']}></a>：<{$val['content']}></p><{/if}>
							<{if ($val['is_reply']) == 0}><p class="text"><{$val['content']}></p><{/if}>
							<{if ($val['lengther']) > 30}><a href="javascript:;" class="all col-red" onclick="funWdLookAll(this)">阅读全部↓</a><{/if}>
						</div>
					</div>
				</li>
				<{/foreach}>
			</ul>
			<p class="look-more"><a href="#" class="col-red" onclick="funWdAllComment()">查看全部评论</a></p>
			<{else}>
			<div class="loading" id="noresults">
                <a href="javascript:;" class="load-success empty-load">
                    <img src="/static/mobile/img/none/no_answer.jpg">
                </a>
            </div>
			<{/if}>
		</div>
	</div>
	<script type="text/javascript" src="/static/js/h5-mobile-common-min-1.0.js"></script>
	<script type="text/javascript">
		//查看全部评论
		function funWdAllComment(){};
		
		//未关注、关注点击事件
		function funWdFollow(){};
		//未关注、关注点击状态
		function funWdFollowChange(str){
			var wd_follow = document.getElementById("wd_follow");
			if(str == 1){
				wd_follow.innerHTML='&#xe66f; 已关注';
				addClass(wd_follow,'follow2');
	            showGuanZhu = false;
			}else{
				wd_follow.innerHTML='&#xe640; 未关注';
				removeClass(wd_follow,'follow2');
	            showGuanZhu = true;
			}			
		}
		//阅读全部、收起
		function funWdLookAll(e){
	        if( $(e).hasClass('active') ){
	            $(e).removeClass('active');
	            $(e).text('阅读全部↓');
	            act1 = $(e).parent().children('.text').animate({'max-height':'65px'},500);
	        }else{
	            $(e).addClass('active');
	            $(e).text('收起↑');
	            act2 = $(e).parent().children('.text').animate({'max-height':'100%'},500);
	        }
		}
		funWdLookAll();
	</script>
<{include file="public/footer.html"}>	